/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.ocpviolation;

/**
 *
 * @author Siya
 */
public class Casino {
    
    private String name;
    private int age;
    
    public Casino(){
    
    }
    public Casino(String nm, int a){
        name = nm;
        age = a;
    
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the age
     */
    public int getAge() {
        return age;
    }

    /**
     * @param age the age to set
     */
    public void setAge(int age) {
        this.age = age;
    }
    public void securityApproval(Customer entrence){
    
        if(entrence.isValid(age))
            System.out.println("Customer qualifies to enter the Casino");
        else
            System.out.println("Customer is age restricted....");
    }
            
}
